package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.LeaveStudent;
import cn.wolfcode.crm.query.QueryForObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface ILeaveStudentService {

    void deleteByPrimaryKey(Long id);

    void insert(LeaveStudent record);

    LeaveStudent selectByPrimaryKey(Long id);

    List<LeaveStudent> selectAll();

    void updateByPrimaryKey(LeaveStudent record);

    PageResult query(QueryForObject qo);

    void save(LeaveStudent leaveStudent);

    /**
     * 根据学员id查流失学员的姓名和退款金额
     * @param stuId
     * @return
     */
    LeaveStudent queryByIdForNameAndRefundAmount(Long stuId);

    void changeState(Long id);
}
